package student.aistar.day16;

/**
 * 本类用来演示: 反射的技术来操作这个类
 *
 * @author: success
 * @date: 2021/8/12 10:27 上午
 */
public class Point {
    private int x;

    private String y;

    private static Double z;

    public Point() {
        System.out.println("无参...");
    }

    private Point(int x, String y) {
        this.x = x;
        this.y = y;
        System.out.println("有参...");
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Point{");
        sb.append("x=").append(x);
        sb.append(", y='").append(y).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
